// 主界面
;
define(function(require, exports, module) {
	'use strict';
	var util = require("util");
	var base = require("base");
	var router = require("../hash/pageRouter");
	var dialog = require("dialog");
	var databind = require("databind");
	var css_phaseInventoryList = require("./phaseRecordDetail.css");
	var tools = require("tools");
	var pageIndex = 1,
		pageSize = 10,
		totalPageCount = 1,
		totalRecordCount = 0; //分页初始化
	var quarterSettlementId = "";
	var init = function(page) {
		quarterSettlementId = page.params.quarterSettlementId;
		router.init();
		tools.loadList("inquiryInterestSettlementDetail.json", $("#phaseRecordDetailBody"), $("#phaseRecordDetailTpl"), {
			quarterSettlementId: quarterSettlementId
		}, function() {
			$(".detail").unbind("click").click(function(){
				router.route("bulkstockTallyDetail/bulkstockTallyDetail.html?inventoryId=" + $(this).parents("tr").attr("inventoryId"));
			});
		});

		initEvent();
	};

	var initEvent = function() {

	};

	return {
		init: init
	}
});